package com.liangwj.springbootredis.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * <b>Description:</b> TODO <br>
 * @author Lingwenjun
 * @date 2018/12/14-13:21
 * @version 1.0
 */
@Data
public class RedisUser implements Serializable {

    private static final Long serialVersionUID = -1l;

    private String userName;

    private Integer age;

    private RedisUser() {

    }
    public RedisUser(String userName, Integer age) {
        this.userName = userName;
        this.age = age;
    }


    /*public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }*/

    @Override
    public String toString() {
        return "RedisUser{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }
}
